#!/usr/bin/python3

import requests

req = requests.session()
loginUrl = "http://t.carfunny.com.cn/auth/BcfUser/login"
data = {
    'userName': 'admin',
    'password': '1234567E10ADC3949BA59ABBE56E057F20F883E'
}
response = req.post(loginUrl, data=data)
print(response.text)
# print(response.content)
# print(response.encoding)

# 测试调用验证用户名接口

verificationIsRepeatUrl = "http://t.carfunny.com.cn/auth/BcfUser/verificationIsRepeat"
data = {
    'account': 'admin'
}
response = req.post(verificationIsRepeatUrl, data=data)
print(response.text)
